package legumes.client.services.callbacks;

import legumes.client.services.LegumesServicesHelper;
import legumes.client.services.util.rpc.SequencableRPCCall;

public class IsStoreOpenedCallback extends SequencableRPCCall<Boolean> {

	private boolean opened;

	@Override
	protected void doCall() {
		LegumesServicesHelper.LEGUMES_SERVICES.isStoreOpened(this);
	}

	public void onSuccess(Boolean isOpened_) {
		opened = isOpened_;
		callNext();
	}

	public boolean isOpened() {
		return opened;
	}
}
